PeerRaiser\Model\Donation C

Total Complexity 105
Dependencies 9
Dependents 9
Total lines 929
Lines of code 394
Logical lines of code 278
Comment lines 336
Methods 30
Properties 32

Methods 30

Method Rating Maintainability Complexity Lines of code
save()
B
42 21 49
sanitize_columns()
A
47 12 35
insert_donation()
A
47 10 34
__construct()
S
52 7 26
maybe_update_stats()
S
52 6 26
__set()
S
61 4 13
get_ip_address()
S
60 4 13
add_note()
S
56 3 18
update()
S
60 3 14
get_donor_name()
S
61 3 11
setup_donation()
S
51 2 24
__get()
S
67 2 8
__isset()
S
68 2 7
update_meta()
S
66 2 8
get_donations()
S
67 2 8
get_donation()
S
68 2 7
increase_fundraiser_amounts()
S
67 2 8
decrease_fundraiser_amounts()
S
66 2 8
increase_team_amounts()
S
67 2 8
decrease_team_amounts()
S
66 2 8
increase_participant_amounts()
S
67 2 8
decrease_participant_amounts()
S
66 2 8
delete()
S
60 1 13
generate_transaction_id()
S
79 1 3
get_meta()
S
72 1 5
get_donations_total()
S
77 1 4
increase_donor_amounts()
S
72 1 5
decrease_donor_amounts()
S
72 1 5
increase_campaign_amounts()
S
72 1 5
decrease_campaign_amounts()
S
72 1 5